package cn.itsource.domain;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@TableName(value = "log")
public class Log {
    public Log() {
    }

    @TableId(type = IdType.AUTO)
    private String id;
    private String url;
    private String ip;
    private String aclass;
    private String method;
    private String args;
    private String user_id;
    private String exception;

    public Log(String url, String ip, String aclass, String method, String args, String user_id, String exception) {
        this.url = url;
        this.ip = ip;
        this.aclass = aclass;
        this.method = method;
        this.args = args;
        this.user_id = user_id;
        this.exception = exception;
    }
}
